package com.edu.tool.bean.user;

import com.baomidou.mybatisplus.annotation.TableName;
import com.edu.tool.bean.BaseBean;

import java.util.Date;

@TableName("s_login_token")
public class SysLoginToken extends BaseBean {


    private Date validTime;

    private String token;

    private String loginType;

    private Integer userId;

    private Integer contactId;

    private Integer investAccountId;

    private String clientIp;

    private String loginChannel;

    private Integer periodType;

    private static final long serialVersionUID = 1L;

    public SysLoginToken(
                      Date validTime,
                      String token,
                      String loginType,
                      Integer userId,
                      Integer contactId,
                      Integer investAccountId,
                      String clientIp,
                      String loginChannel,
                      Integer periodType)
    {

        this.validTime = validTime;
        this.token = token;
        this.loginType = loginType;
        this.userId = userId;
        this.contactId = contactId;
        this.investAccountId = investAccountId;
        this.clientIp = clientIp;
        this.loginChannel = loginChannel;
        this.periodType = periodType;
    }

    public SysLoginToken() {
        super();
    }


    public Date getValidTime() {
        return validTime;
    }

    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType == null ? null : loginType.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getContactId() {
        return contactId;
    }

    public void setContactId(Integer contactId) {
        this.contactId = contactId;
    }

    public Integer getInvestAccountId() {
        return investAccountId;
    }

    public void setInvestAccountId(Integer investAccountId) {
        this.investAccountId = investAccountId;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp == null ? null : clientIp.trim();
    }

    public String getLoginChannel() {
        return loginChannel;
    }

    public void setLoginChannel(String loginChannel) {
        this.loginChannel = loginChannel == null ? null : loginChannel.trim();
    }

    public Integer getPeriodType() {
        return periodType;
    }

    public void setPeriodType(Integer periodType) {
        this.periodType = periodType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());

        sb.append(", validTime=").append(validTime);
        sb.append(", token=").append(token);
        sb.append(", loginType=").append(loginType);
        sb.append(", userId=").append(userId);
        sb.append(", contactId=").append(contactId);
        sb.append(", investAccountId=").append(investAccountId);
        sb.append(", clientIp=").append(clientIp);
        sb.append(", loginChannel=").append(loginChannel);
        sb.append(", periodType=").append(periodType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}